<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html> 
  <head> 
    <title>Interface Admin de la clinique de Santa Fé</title> 
    <%= stylesheet_link_tag "depot", :media => "all" %>
    <%= javascript_include_tag :defaults %>
  </head> 
  <body id="store"> 
    <div id="banner"> 
      <%= link_to image_tag("logo.jpg"), :controller => :public %>
      <p><%= @page_title || "Page d'admin" %></p>
    </div> 
    <div id="columns"> 
      <div id="side"> 
        <% user = User.find session[:user_id] %>
        <%= link_to 'Acceuil admin', :controller => 'admin/dashboard' %><br />
        <%= link_to 'Gestion des users', :controller => 'admin/users' if Rule.can_manage_users? user %><br />
        <%= link_to 'Gestion des news', :controller => 'admin/actualities' if Rule.can_manage_news? user %><br />
        <%= link_to 'Gestion des articles', :controller => 'admin/articles' if Rule.can_manage_articles? user %><br />
        <%= link_to 'Gestion des médicaments', :controller => 'admin/products' if Rule.can_manage_products? user%><br />
        <%= link_to 'Retour au front-office', :home %>
      </div> 
      <div id="main">
        <% if flash[:notice] -%> 
          <div id="notice"><%= flash[:notice] %></div> 
        <% end -%>

        <%= yield :layout %> 
      </div>
    </div> 
  </body> 
</html> 
